<!doctype html>
<html>
<head>
    <title>站点管理--开启新的站点</title>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link href="<?php echo URLPRE;?>static/admin/css/admin_full.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/jquery.validate.1.9.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/jquery.metadata.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/validate/messages_cn.js"></script>
    <link href="<?php echo URLPRE;?>static/public/Lib/artDialog/skins/default.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/artDialog/jquery.artDialog.source.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/artDialog/plugins/iframeTools.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/admin/js/common.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.css">
    <!--引入JS-->
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.js"></script>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />

</head>
<body>
    <div class="table_full">
        <form class="formvalidate" action="<?php echo $form_post;?>" method="post">
            <table width="100%" class="tab_label" id="general_config">
                <col class="th" />
                <col/>
                <tbody>
                <tr>
                    <th>网站名称*</th>
                    <td><input type="text" name="Form[sitename]" value="" class="input rounded w_9 hp_15" validate="{required:true}" /></td>
                </tr>

                <tr>
                    <th>网站LOGO*</th>
                    <td class="rowform">
                        <ul>
                            <li><input type="text" name="Form[sitelogo]" id="file_url" style="width: 400px;" class="input rounded hp_15" value="" validate="{required:true}" /></li>
                            <li><div id="filePicker">选择图片</div></li>
                            <li><span class="red">[尺寸：200x85][格式：PNG]</span></li>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <th>客服电话*</th>
                    <td><input type="text" name="Form[site_service_phone]" value="" class="input rounded w_9 hp_15" validate="{required:true}"/></td>
                </tr>
                <tr>
                    <th>公司名称*</th>
                    <td><input type="text" name="Form[company]" value="" class="input rounded w_9 hp_15" validate="{required:true}" /></td>
                </tr>
                <tr>
                    <th>所属城市*</th>
                    <td>
                        <select name="Form[siteprovince]" id="province" onChange="_showdistrict(['continent', 'country', 'province', 'city','district'], 3)">
                            <option value="-1" did="-1">选择省</option>
                        </select>
                        <select name="Form[sitecity]" id="city" onChange="_showdistrict(['continent', 'country', 'province', 'city','district'], 4)" validate="{required:true,sel_min:0}">
                            <option value="-1" did="-1">选择市</option>
                        </select>
                        <select name="Form[sitedistrict]" id="district" onChange="_showdistrict(['continent', 'country', 'province', 'city','district'], 5)">
                            <option value="-1" did="-1">选择区</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>模板*</th>
                    <td>
                        <select name="Form[site_template]" id="template" validate="{required:true}">
                            <?php foreach ($templates as $k => $template) { ?>
                                <?php if(strpos($k,'bz')===0):?>
                                    <option <?php if($sel_tpl==$k):?> selected="selected" <?php endif;?> value="<?php echo $k?>"><?php echo $template['name']?></option>
                                <?php endif?>
                            <?php }?>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>用户名*</th>
                    <td><input id="u" name="username" class="input rounded w_9 hp_15"  type="text" value="" placeholder="帐号名/邮箱/手机号码" title="帐号名" validate="{required:true,sel_min:0}" /></td>
                </tr>
                <tr>
                    <th>密码*</th>
                    <td><input maxlength=16 type="password" id="p" name="password" tabindex="2" class="input rounded w_9 hp_15" type="text" value=""  placeholder="密码" title="密码" validate="{required:true,sel_min:0}"/></td>
                </tr>
                <tr>
                    <th></th>
                    <td><button type="submit" class="btn btn_submit J_ajax_submit_btn">提交</button></td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
<script type="text/javascript">
    var district_url = '<?php echo site_url('admin/api/city_fetch/?id=')?>';
    _showdistrict(['continent', 'country', 'province', 'city','district'], 2, 40002,0,0,0);
    upload_image("<?php echo site_url('admin/upload/ajax_upload');?>",'filePicker','file_url');
</script>
</body>
</html>